<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2020/2/24
  Time: 10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
    <script>
        function btnClick1() {
            $.post("/error/getJson1",function (data) {
                alert(data.msg)

            },"json")
        }

        function btnClick2() {
            $.post("/error/getJsonError",function (data) {
                alert(data.msg)

            },"json")
        }
    </script>
</head>
<body>
<h1>我是Test页面</h1>

<input type="button" value="正常ajax" onclick="btnClick1()">
<input type="button" value="异常ajax" onclick="btnClick2()">


</body>
</html>
